puzzle over

Translations
se creuser la tête pour
Definitions
To think carefully and for a long time about something, often in an attempt to understand it or solve a problem.